From: Kenichi Handa Date: Thu, 2 Oct 2003 02:05:42 +0000 (+0000) Subject: (x_load_font): Clear all members of FONTP before start filling them. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~25326 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=06908ecafc1274d7e3abcbf28be704d5c589f9b8;p=emacs.git (x_load_font): Clear all members of FONTP before start filling them. --- diff --git a/src/xterm.c b/src/xterm.c index 13f4d021766..4d4ce822dd0 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9869,6 +9869,7 @@ x_load_font (f, fontname, size) /* Now fill in the slots of *FONTP. */ BLOCK_INPUT; + bzero (font, sizeof (*font)); fontp->font = font; fontp->font_idx = i; fontp->name = (char *) xmalloc (strlen (fontname) + 1);